package apigateway.requestAtomService;

import org.springframework.stereotype.Component;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created by 小泽玛丽罗 on 2017/3/5.
 */
@Component
public class ExcutePool {

    private ExecutorService  executorService= Executors
            .newFixedThreadPool(10);

    public void getAtomService(Runnable runnable){
        executorService.submit(runnable);
    }

}
